package com.lp.mgt.services;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.lp.mgt.entities.User;

public interface UserService {
	public User findUserById(String id);//根据id查用户
	public User findUserByName(String name);//根据账户名
	public User findUserWithLogin(String str);//根据账户名
	public Integer saveUserWhenRegister(User user);
	public HashMap<String, String> sendEmail(String username, String email);
	public Boolean getUserByNameWhenRegisterOrLogin(String username);
	public Boolean checkUserWithNameAndEmail(String username, String email);
	public Boolean updateUserWithPassword(String username, String password);
	public Map<String, Object> getUsersWithTerms(User user);
	public Map<String, Object> getOtherUserInfoById(String uid);
	public Boolean removeUserSingleOrBatch(String ids);
	public Boolean updateUserWhenEdit(User user);
	public Map<String, Object> getUserWithoutRole(String roleId, String username, String page, String limit);
	public List<User> getUserWithRole(String roleId);
	public Boolean divideUserWithRoleId(String type, String roleId, List<User> list);
	public Boolean effectiveOrinvalid(String ids, String type);
	public Boolean focusUser(String id, String type);
	
	public Boolean removeUserByDeptId(String deptId);
}
